const fs = require("fs");
const path = require("path");
const filePath = path.join(__dirname, "write.txt");

//同步
fs.writeFileSync(filePath, "hello nodeee");